export default {
  name: '圆形进度条',
  icon: '/img/chart/pie2.png',
  type: '饼图',
  cptKey: 'pie02',
  width: 500,
  height: 300,
  dynamic: true,
  options: {
    cptDataForm: {
      dataText: JSON.stringify({value: 80, max: 100}),
      dataSource: 1,
      pollTime: 0
    },
    attribute: {
      backgroundColor: '#180f2a',
      title: [
        {
          show: true,
          text: '',
          left: '50%',
          top: '37%',
          textAlign: 'center',
          textStyle: {
            fontSize: 28,
            fontWeight: '100',
            color: '#0FF',
            textAlign: 'center',
          },
        },
        {
          show: true,
          text: '完成率',
          left: '50%',
          top: '48%',
          textAlign: 'center',
          textStyle: {
            fontSize: '18',
            fontWeight: '400',
            color: '#8d8793',
            textAlign: 'center',
          },
        },
        {
          show: true,
          text: 'DONUT CHART',
          left: '50%',
          top: '57%',
          textAlign: 'center',
          textStyle: {
            fontSize: '14',
            fontWeight: '400',
            color: 'rgba(65,63,112,1)',
            textAlign: 'center',
          }
        }
      ],
      polar: {
        radius: ['52%', '56%'],
        center: ['50%', '50%'],
      },
      angleAxis: {
        max: 100, // 最大值
        show: false,
      },
      radiusAxis: {
        type: 'category',
        show: true,
        axisLabel: {
          show: false,
        },
        axisLine: {
          show: false,

        },
        axisTick: {
          show: false
        },
      },
      pie: {
        show: true,
        steps: 100,
        radius: ['43%', '50%'],
        borderColor: '#180f2a',
        backgroundColor: '#251f45',
        colors: ['#0ff', '#5467df'],
        borderWidth: 2
      },
      bar: {
        show: true,
        backgroundColor: '#2e2856',
        colors: ['#585fe1', '#0ff']
      }
    }
  }
}
